import type { App } from 'vue';
import { createPinia } from 'pinia';
import piniaPersistedstate from 'pinia-plugin-persistedstate';

export const store = createPinia();

export default function (app: App) {
  store.use(piniaPersistedstate);
  app.use(store);
}
